import request from '@/utils/request'

// 查询付款列表
export function listScmOrderPayment(query) {
  return request({
    url: '/scm/scmOrderPayment/list',
    method: 'get',
    params: query
  })
}

// 查询付款详细
export function getScmOrderPayment(id) {
  return request({
    url: '/scm/scmOrderPayment/' + id,
    method: 'get'
  })
}

// 新增付款
export function addScmOrderPayment(data) {
  return request({
    url: '/scm/scmOrderPayment',
    method: 'post',
    data: data
  })
}

// 修改付款
export function updateScmOrderPayment(data) {
  return request({
    url: '/scm/scmOrderPayment',
    method: 'put',
    data: data
  })
}

// 删除付款
export function delScmOrderPayment(id) {
  return request({
    url: '/scm/scmOrderPayment/' + id,
    method: 'delete'
  })
}
